import request from '@/utils/request'

// 查询列表
export function listPostinv(query) {
  return request({
    url: '/interview/postinv/list',
    method: 'get',
    params: query,
    permissions: ['interview:postinv:query']
  })
}

// 查询详细
export function getPostinv(pId) {
  return request({
    url: '/interview/postinv/' + pId,
    method: 'get'
  })
}

// 新增
export function addPostinv(data) {
  return request({
    url: '/interview/postinv',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePostinv(data) {
  return request({
    url: '/interview/postinv',
    method: 'put',
    data: data
  })
}

// 删除
export function delPostinv(pId) {
  return request({
    url: '/interview/postinv/' + pId,
    method: 'delete'
  })
}
